﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo14
{
    class Robot
    {
        private string name { get; set; }
        private int score;

        public Robot(string name,int score) {
            this.name = name;
            this.score = 0;
        }

        public int listFist() {
            Random ra = new Random();
            int a = ra.Next(1, 4);
            switch (a)
            {
                case 1:
                    Console.WriteLine(name + ":出拳: 剪刀");
                    break;
                case 2:
                    Console.WriteLine(name + ":出拳: 石头");
                    break;
                case 3:
                    Console.WriteLine(name + ":出拳: 布");
                    break;

                default:
                    break;
            }
            return a;
        }


        public void addScore(){
            score += 1;
        }

        public int Score() {
            return score;
        }

        public string RobotName() {
            return name;
        }

    }
}
